package com.woniu.service.impl;

import com.woniu.adapter.EquipmentAdapter;
import com.woniu.outlet.po.Energy;
import com.woniu.service.EnergyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EnergyServiceImpl implements EnergyService {

    @Autowired
    private EquipmentAdapter equipmentAdapter;

    @Override
    public List<Energy> findEnergys() throws Exception {
        List<Energy> energys = equipmentAdapter.findEnergys();
        return energys;
    }
}
